
//
//  U9ToolsManager.m
//  U9WatchGame
//
//  Created by u9-baken on 2019/2/21.
//  Copyright © 2019 UUU9. All rights reserved.
//

#import "U9ToolsManager.h"
#import "U9ToolsModel.h"

@implementation U9ToolsManager

+ (void)getToolsListWithUserid:(NSString *)uid andSessionid:(NSString *)sessionid andGid:(NSString *)gid andCompletionHandle:(void (^)(U9ToolsModel *model, NSError *error))complete{
    NSString *param = [NSString stringWithFormat:@"userid=%@&sessionid=%@",uid,sessionid];
    [self POST:[NSString stringWithFormat:@"%@%@?cid=%@",Api_URL,kGetToolsList,gid]
           parameters:param
    completionHandler:^(id responseObj, NSError *error) {
        U9ToolsModel *model = [U9ToolsModel mj_objectWithKeyValues:responseObj];
        if (model.error_code != 0) {
            error = [self createError:model.error_msg];
        }
        complete(model,error);
    }];
}




@end
